package context.config.beanmethod;

import cn.stimd.spring.context.annotation.Bean;
import cn.stimd.spring.context.annotation.Configuration;
import context.basic.User;

/**
 * Created by Stimd
 * 项目地址：https://gitee.com/stimd/spring-wheel
 * 公众号：Java编程探微
 */
@Configuration
public class RoleConfig {

    @Bean
    public User user() {
        return new User("User实例来自配置类");
    }
}
